package com.ruoyi.systemInfo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 多媒体资源对象 wdm_media
 * 
 * @author ruoyi
 * @date 2025-05-17
 */
public class Media extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 媒体ID */
    private Long mediaId;

    /** 媒体类型（0=图片 1=视频） */
    @Excel(name = "媒体类型", readConverterExp = "0==图片,1==视频")
    private String mediaType;

    /** 资源地址 */
    @Excel(name = "资源地址")
    private String resourceUrl;

    /** CDN加速地址 */
    @Excel(name = "CDN加速地址")
    private String cdnUrl;

    /** 文件大小（KB） */
    @Excel(name = "文件大小", readConverterExp = "K=B")
    private String fileSize;

    /** 分辨率 */
    @Excel(name = "分辨率")
    private String resolution;

    /** 排序序号 */
    @Excel(name = "排序序号")
    private String sortOrder;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 删除标志（0存在 1删除） */
    private String delFlag;

    /** 版本号（乐观锁） */
    private Long version;

    public void setMediaId(Long mediaId) 
    {
        this.mediaId = mediaId;
    }

    public Long getMediaId() 
    {
        return mediaId;
    }

    public void setMediaType(String mediaType) 
    {
        this.mediaType = mediaType;
    }

    public String getMediaType() 
    {
        return mediaType;
    }

    public void setResourceUrl(String resourceUrl) 
    {
        this.resourceUrl = resourceUrl;
    }

    public String getResourceUrl() 
    {
        return resourceUrl;
    }

    public void setCdnUrl(String cdnUrl) 
    {
        this.cdnUrl = cdnUrl;
    }

    public String getCdnUrl() 
    {
        return cdnUrl;
    }

    public void setFileSize(String fileSize) 
    {
        this.fileSize = fileSize;
    }

    public String getFileSize() 
    {
        return fileSize;
    }

    public void setResolution(String resolution) 
    {
        this.resolution = resolution;
    }

    public String getResolution() 
    {
        return resolution;
    }

    public void setSortOrder(String sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public String getSortOrder() 
    {
        return sortOrder;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mediaId", getMediaId())
            .append("mediaType", getMediaType())
            .append("resourceUrl", getResourceUrl())
            .append("cdnUrl", getCdnUrl())
            .append("fileSize", getFileSize())
            .append("resolution", getResolution())
            .append("sortOrder", getSortOrder())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
